package com.example.lvsuo.service.impl;

import com.example.lvsuo.entity.HrEmp;
import com.example.lvsuo.entity.vo.HrTeamVo;
import com.example.lvsuo.service.IHrTeamService;
import com.example.lvsuo.entity.HrTeam;
import com.example.lvsuo.mapper.HrTeamMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 团队信息 服务实现类
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@Service
public class HrTeamServiceImpl extends ServiceImpl<HrTeamMapper, HrTeam> implements IHrTeamService {
    @Autowired
    HrTeamMapper hrTeamMapper;

    /**
     * 查询团队信息
     * @param hrTeamVo
     * @return
     */
    @Override
    public List<HrTeam> getHrTeam(HrTeamVo hrTeamVo) {
        return hrTeamMapper.getHrTeam(hrTeamVo);
    }

    /**
     * 根据id查询团队信息
     * @param id
     * @return
     */
    @Override
    public List<HrTeam> getHrTeamId(String id) {
        return hrTeamMapper.getHrTeamId(id);
    }

}
